bpl was set wrong for bitmaps, should be multiple of 4. (Thanks to Hans
authorTor Lillqvist <tml@src.gnome.org>
Mon, 28 Jun 1999 07:06:01 +0000 (07:06 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 28 Jun 1999 07:06:01 +0000 (07:06 +0000)
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
  bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
  finding this.)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkimage-win32.c
gdk/win32/gdkimage.c

index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 48708f795c509e288ca4ffcc4fbf7e388c622aeb..b017826940e7cdbae216205f15426133ed130d96 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 28 10:03:07 1999  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
+       bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
+       finding this.)
+
 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
 
        * gtk+.spec.in: Corrected some typos in files section.
index 8b8c4190ea2ea30eb4ccee636ae5d86122f908ad..790d385297832c9056aca382928ce64cf57cf72e 100644 (file)
@@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
     }
   image->byte_order = GDK_LSB_FIRST;
   if (image->depth == 1)
-    image->bpl = (width - 1)/8 + 1;
+    image->bpl = ((width - 1)/32 + 1)*4;
   else
     image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
 
index 8b8c4190ea2ea30eb4ccee636ae5d86122f908ad..790d385297832c9056aca382928ce64cf57cf72e 100644 (file)
@@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
     }
   image->byte_order = GDK_LSB_FIRST;
   if (image->depth == 1)
-    image->bpl = (width - 1)/8 + 1;
+    image->bpl = ((width - 1)/32 + 1)*4;
   else
     image->bpl = ((width*image->bpp - 1)/4 + 1)*4;